package com.jp.knowledge.command.implement;

import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;

import com.jp.knowledge.activity.HomeActivity;
import com.jp.knowledge.command.Command;
import com.jp.knowledge.command.CommandReceiver;

/**
 * Created by 528787067@qq.com on 2017/6/17.
 *
 * 今日知识首页(一级分类)
 */

public class JinRiZhiShiShouYe extends Command {

	public JinRiZhiShiShouYe(@NonNull CommandReceiver receivert) {
		super(receivert);
	}

	@Override
	public void execute() {
		Intent intent = createIntent(HomeActivity.class);
		intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		startActivity(intent);
	}
}
